import os.path

import yaml


def readYaml(path):
    with open(path, "r+", encoding="utf-8") as file:
        data = yaml.load(file, yaml.FullLoader)
        return data


if __name__ == '__main__':
    rootPath = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
    print(rootPath)
    path = os.path.join(rootPath, "config/config.yaml")
    print(readYaml(path))
